package structuralPattern.flyweight.example02;

public class Client {
    public static void main(String[] args) {
        GobangFactory instance = GobangFactory.getInstance();

        GobangFlyweight w = instance.getGobang("W");
        GobangFlyweight w1 = instance.getGobang("W");
        GobangFlyweight w2 = instance.getGobang("W");
        w.display();
        w1.display();
        w2.display();
        System.out.println(w == w1);
        System.out.println(w1 == w2);

    }
}
